import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      redirect: 'home',
      component: () => import('../views/Index'),
      children: [{
        path: '/home',
        name: 'home',
        component: () => import('../views/Home'),
      }, {
        path: '/classify',
        name: 'classify',

        component: () => import('../views/Classify'),
      },
      {
        path: '/my',
        component: () => import('../views/my'),
      },
      {
        path: '/recommend',
        name: 'recommend',

        component: () => import('../views/Recommend'),
      },


      ]
    },
  
  ]
})
